import request from '@/utils/request'
/*
  获取图库列表
*/
export function getGalleryList(data: any) {
  return request({
    url: '/api/corp/wechat/gallery/list',
    method: 'post',
    data,
  })
}
/*
  更新图片
*/
export function doEdit(data: any) {
  return request({
    url: '/api/corp/wechat/gallery/save',
    method: 'post',
    data,
  })
}
/*
  删除文件
*/
export function doDelete(data: any) {
  return request({
    url: '/api/corp/wechat/gallery/delete',
    method: 'post',
    data,
  })
}
/*
  上传文件
*/
export function uploadFile(data: any) {
  return request({
    url: '/api/corp/wechat/upload/file',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
